package com.dzt.androidframework.changeskin.lib.attr;

import android.view.View;

import java.util.List;

/**
 * Created by zhy on 15/9/22.
 */
public class SkinView {
	View view;
	List<SkinAttr> attrs;

	public SkinView(View view, List<SkinAttr> skinAttrs) {
		this.view = view;
		this.attrs = skinAttrs;
	}

	public void apply() {
		if (view == null)
			return;
		for (SkinAttr attr : attrs) {
			attr.apply(view);
		}
	}
}
